from sanic_openapi import swagger_blueprint


def swagger(app):
    app.blueprint(swagger_blueprint)
    app.config["API_BASEPATH"] = "/"
    app.config["API_SECURITY"] = [{"Authentication": []}]
    app.config["API_SECURITY_DEFINITIONS"] = {
        "Authorization": {"type": "apiKey", "in": "header", "name": "token"}
    }
